package com.dongwq

class PageDemo {

	String name;
	String uri;
	String description
	String remark
	PageType type = PageType.action;
	
	static mapping = {
		table 'tb_page_demo'
		sort 'uri'
	}

	enum PageType{view, action, template, html}
	
	static constraints = {
		name(blank:false, maxSize:50)
		uri(blank:false, maxSize:100)
		description(maxSize:400)
		remark(maxSize:400)
		type(blank:false)
	}  
}
 